package top.tenebrous.termbor.rpc.common.constants;

/**
 * @program: termbor-rpc
 * @description:
 * @author: yazhang6
 * @create: 2024-05-21 09:42
 **/
public class RpcConstants {

    public final static short MAGIC = 0x10;
    public final static short HEADER_TOTAL_LEN = 32;

    public final static String REFLECT_TYPE_JDK = "jdk";

    public final static String REFLECT_TYPE_CGLIB = "cglib";
    public static final String SERIALIZATION_JDK = "jdk";
    public static final String SERVICE_LOAD_BALANCER_RANDOM = "random";

    /**
     * 最小权重
     */
    public static final int SERVICE_WEIGHT_MIN = 1;
    /**
     * 最大权重
     */
    public static final int SERVICE_WEIGHT_MAX = 100;

    /**
     * 心跳ping消息
     */
    public static final String HEARTBEAT_PING = "ping";

    /**
     * 心跳pong消息
     */
    public static final String HEARTBEAT_PONG = "pong";

}
